package com.brainhealth.customer.service.impl;

import java.util.List;
import com.brainhealth.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.brainhealth.customer.mapper.SysUserEventBuriedPointMapper;
import com.brainhealth.customer.domain.SysUserEventBuriedPoint;
import com.brainhealth.customer.service.ISysUserEventBuriedPointService;

/**
 * 用户事件埋点记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-02
 */
@Service
public class SysUserEventBuriedPointServiceImpl implements ISysUserEventBuriedPointService 
{
    @Autowired
    private SysUserEventBuriedPointMapper sysUserEventBuriedPointMapper;

    /**
     * 查询用户事件埋点记录
     * 
     * @param id 用户事件埋点记录主键
     * @return 用户事件埋点记录
     */
    @Override
    public SysUserEventBuriedPoint selectSysUserEventBuriedPointById(Long id)
    {
        return sysUserEventBuriedPointMapper.selectSysUserEventBuriedPointById(id);
    }

    /**
     * 查询用户事件埋点记录列表
     * 
     * @param sysUserEventBuriedPoint 用户事件埋点记录
     * @return 用户事件埋点记录
     */
    @Override
    public List<SysUserEventBuriedPoint> selectSysUserEventBuriedPointList(SysUserEventBuriedPoint sysUserEventBuriedPoint)
    {
        return sysUserEventBuriedPointMapper.selectSysUserEventBuriedPointList(sysUserEventBuriedPoint);
    }

    /**
     * 新增用户事件埋点记录
     * 
     * @param sysUserEventBuriedPoint 用户事件埋点记录
     * @return 结果
     */
    @Override
    public int insertSysUserEventBuriedPoint(SysUserEventBuriedPoint sysUserEventBuriedPoint)
    {
        sysUserEventBuriedPoint.setCreateTime(DateUtils.getNowDate());
        return sysUserEventBuriedPointMapper.insertSysUserEventBuriedPoint(sysUserEventBuriedPoint);
    }

    /**
     * 修改用户事件埋点记录
     * 
     * @param sysUserEventBuriedPoint 用户事件埋点记录
     * @return 结果
     */
    @Override
    public int updateSysUserEventBuriedPoint(SysUserEventBuriedPoint sysUserEventBuriedPoint)
    {
        return sysUserEventBuriedPointMapper.updateSysUserEventBuriedPoint(sysUserEventBuriedPoint);
    }

    /**
     * 批量删除用户事件埋点记录
     * 
     * @param ids 需要删除的用户事件埋点记录主键
     * @return 结果
     */
    @Override
    public int deleteSysUserEventBuriedPointByIds(Long[] ids)
    {
        return sysUserEventBuriedPointMapper.deleteSysUserEventBuriedPointByIds(ids);
    }

    /**
     * 删除用户事件埋点记录信息
     * 
     * @param id 用户事件埋点记录主键
     * @return 结果
     */
    @Override
    public int deleteSysUserEventBuriedPointById(Long id)
    {
        return sysUserEventBuriedPointMapper.deleteSysUserEventBuriedPointById(id);
    }
}
